<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    /*  创建汽车对象，属性有品牌，颜色，型号；
        启动汽车方法，停止汽车方法 */

        /*  调用属性，调用方法*/

        // car对象遍历
<script>
    let car = {
        grand:'宝马',
        color:'blue',
        size:xxxx,
        start:function(){
           console.log(this.grand+'启动');
       
        
            console.log(this.grand+'停止');
        }
    }
    console.log(car);
    car[grand]='奥迪';
     car.start();
     for( c in car){
        console.log(car[c]);
     }
</script>
</body>
</html>